<extend name="Base/common"/>

<block name="topmenus">
    <think:nav name="nav"> 
    	<eq name="nav.pid" value="0">
        <li <if condition="$nav.title eq '文章列表'">class="active"</if>>
            <a href="{$nav.url|get_nav_url}" target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">{$nav.title}</a>
        </li>
        </eq>
    </think:nav>
</block>

<block name="breadcrumbs">
    <div class="breadcrumbs-v1">
        <div class="container">
            <h1>{$info.title}</h1>
            <span>{$info.uid|get_username}发表于 {$info.create_time|date='Y-m-d H:i',###}
        		<article:prev name="prev" info="info">
                    <a href="{:U('?id='.$prev['id'])}">上一篇</a>
                </article:prev>
                <article:next name="next" info="info">
                    <a href="{:U('?id='.$next['id'])}">下一篇</a>
                </article:next>
        	</span>
        </div>
    </div>
</block>

<block name="body">
	<div class="container content-md">
        <div class="row">
            <div class="col-md-3">
            	<div class="panel-heading-v2 overflow-h">
                    <h2 class="heading-xs pull-left"><i class="fa fa-bar-chart-o"></i> 所有栏目</h2>
                </div>
                <ul class="list-group sidebar-nav-v1 margin-bottom-40" id="sidebar-nav-1">
                	<li class="list-group-item">
		                <a href="{:U('File/download?id='.$info['id'])}" class="btn btn-success btn-block btn-large">立即下载</a>
		            </li>
                    {:W('Category/lists', array($category['id'], ACTION_NAME == 'index'))}
                </ul>
            </div>
            <div class="col-md-9">
            
            	<div class="headline"><h2>{$info.title}</h2></div>
                <div class="panel-body">
                    <p>{$info.content}</p>
                </div> 
                <!--Basic Table-->
                <table class="table table-bordered">
                    <tbody>
                        <tr>
                            <td width="20%">文件尺寸</td>
                            <td>{$info.size}</td>
                        </tr>
                        <tr>
                            <td>下载次数</td>
                            <td>{$info.download}</td>
                        </tr>
                        <tr>
                            <td>文件描述</td>
                            <td>{$info.description|default='暂无描述'}</td>
                        </tr>
                    </tbody>
	            </table>
	            {:hook('documentDetailAfter')}
            </div>
        </div>
    </div>  
</block>